#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pymysql

db = pymysql.connect("localhost","root","chenhui","springlearn", charset='utf8')
cur = db.cursor()
cur.execute('select * from puser')

for i in cur.fetchall():
    print(str(i))
db.close()